package xy.common.returndata.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xy.common.returndata.dto.Result;
import xy.common.returndata.dto.ResultEnum;

@RestController
public class HaloController {

    @GetMapping("t1")
    public Result halo(){
        return Result.commonNoData(ResultEnum.SUCCESS);
    }


    @GetMapping("t2")
    public Result halo2(){
        return new Result(100,"success","good");
    }

}
